home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln1084.arc
/
CPORT3.LTG
< prev
next >
Wrap
Text File
|
1986-10-01
|
640b
|
24 lines
/* algnm.h - vers. M68000-1.0
Memory alignment routines. NOTE: These def's are highly machine-dependent.
*/
typedef union lgnm
{
int *iptr;
short *sptr;
float *fptr;
double *dptr;
char *cptr;
unsigned int *uptr;
unsigned short *usptr;
} ALIGN;
#define _lg(p) (((int)p.cptr) & 1 ? ++p.cptr : p.cptr)
#define clgn(p) p.cptr
#define ilgn(p) ((int*)_lg(p))
#define slgn(p) ((short*)_lg(p))
#define flgn(p) ((float*)_lg(p))
#define dlgn(p) ((double*)_lg(p))
#define ulgn(p) ((unsigned*)_lg(p))
#define uslgn(p) ((unsigned short*)_lg(p))